(function($) {
    var arkflow = $.arkflow;

	arkflow.ResizerPath = Base.extend({
        constructor: function(resizer) {
            this.resizer = resizer;
            this.paper = resizer.paper;
            this.resizeInfo = resizer.resizeInfo;
            this.comp = this.paper.path("M0 0L1 1").hide();
        },
        redraw: function() {
            this.comp.attr({
                path : this.createPath()
            });
        },
        // 创建连线
        createPath : function() {
            return "M" + this.resizeInfo.x + " " + this.resizeInfo.y + "L"
                + this.resizeInfo.x + " "
                + (this.resizeInfo.y + this.resizeInfo.height) + "L"
                + (this.resizeInfo.x + this.resizeInfo.width) + " "
                + (this.resizeInfo.y + this.resizeInfo.height) + "L"
                + (this.resizeInfo.x + this.resizeInfo.width) + " "
                + this.resizeInfo.y + "L" + this.resizeInfo.x + " "
                + this.resizeInfo.y;
        },
        show: function() {
            this.comp.show();
        },
        hide: function() {
            this.comp.hide();
        },
        remove: function() {
            this.comp.remove();
        }
    });
})(jQuery);